function tildeOmega=gen_omegat(Omegat,n)
tildeOmega=[];
for nx=1:n      
    temp=diag(Omegat(nx,:));
    tildeOmega = blkdiag(tildeOmega,temp);
end